<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>axios发送请求</title>
		<script src="js/axios.min.js"></script>
	</head>
	<body>
		<script>
			function login() {
				axios.post("http://localhost:9090/doLogin", {"zhanghao":"zhangsan", "mima":"123"}).then(function (res) {console.log(res)})
			}
			function queryDianYing() {
				axios.get("http://localhost:9090/dianyings").then(function (res) {console.log(res)})
			}
		</script>
		<button type="button" onclick="queryDianYing()">电影列表</button>
		<button type="button" onclick="login()">登录</button>
	</body>
</html>